#include<bits/stdc++.h>
#define N 100002
using namespace std;
int n,sum;
int r[N];
bool a[N];
bool s[N];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    memset(a,1,sizeof(a));
    memset(s,1,sizeof(s));
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>r[i];
    }
    sort(r+1,r+n+1);
    for(int i=1;(i<=n)&&(s[i]!=0);i++){
        for(int j=i+1;j<=n;j++){
            if((r[j]>r[i])&&(a[j]!=0)){
                a[i]=0;
                s[i]=0;
                a[j]=0;
                break;
            }
        }
    }
    for(int i=1;i<=n;i++){
        if(s[i]==1){
            sum++;
        }
    }
    cout<<sum;
    return 0;
}
